//package com.example.springboot.RabbitMQ;
//
//
//import lombok.extern.slf4j.Slf4j;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.annotation.Rollback;
//import org.springframework.test.context.junit4.SpringRunner;
//import org.springframework.transaction.annotation.Transactional;
//
//@Slf4j
//@SpringBootTest
//@RunWith(SpringRunner.class)
//public class test_02 {
//
//    @Autowired
//    private TestProducer_01 testProducer01;
//
//    @Autowired
//    private TestConsumer_01 testConsumer01;
//
//    @Test
//    public void test_01() {
////        testProducer01.sendMsg();
//
////        testProducer01.sendMsg2();
//
////        testProducer01.sendMsg3();
//        log.info("sdfghjmk,");
//
//    }
//
//    @Test
//    @Transactional
//    @Rollback(value = true) //junit回滚事务，默认ture回滚事务，如果要提交事务就设置为false
//    public void test_02() {
//        testProducer01.sendMsg4();
//
//    }
//}
